function insert_sms_set ()
{

    let amount     = $("#amount").val()//拿到输入的值
    let member_nid = $("#member_nid").val()//拿到输入的值
    let vip_limite = $("#vip_limite").val()//拿到输入的值
    let type       = $("#type").val()//拿到输入的值

    //获取数据拼接之后传递到functiong


    //ajax删除数据
    $.get("../controller/modify-sms-set-function.php?member_nid="+member_nid+"&amount="+amount+"&vip_limite="+vip_limite+"&type="+type,
           null,function (result)
        {//ajax请求,请求后执行下面代码

            var data = JSON.parse(result);

            console.log(data)
            console.log(data['status'])

        if (data['status']==200)
        {//成功刷新页面

            layer.open({
                content: '操作成功',
                yes: function(index, layero){
                    //do something
                    layer.close(index); //如果设定了yes回调，需进行手工关闭
                    location.reload()
                },
                cancel: function(index, layero){
                    layer.close(index); //如果设定了yes回调，需进行手工关闭
                    location.reload()
                }
            });



            console.log(result)

        }
        else
        {//否则弹出错误信息
            alert("修改失败，请查询");
            console.log(data)
        }
    });


    //action="../../controller/modify-sms-function.php"
}




